#include <stdio.h>

int main() {
	int m = 0, n = 0;
	char s[40], t[40];
	gets (s);
	while (s[m] != '\0')
		m++;
	m -= 1;
	while (m >= 0) {
		t[n] = s[m];
		m--, n++;
	}
	m = 0;
	while (s[m] != '\0') {
		t[n] = s[m];
		n++, m++;
	}
	t[n] = '\0';
	puts(t);
}